package com.ruoyi.report.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @version v1.0
 * @ProjectName: report
 * @ClassName: WsResultDvo
 * @Description: ws返回给前台的结果
 * @Author: sunyan
 * @Date: 2022/3/8 8:39
 */
public class WsResultDvo {
    //命令发送时间
    private String createTime;
    //data:{} 修改的命令
    private String data;
//    websocket的id
    private String id;
    //"success"
    private String returnMessage;
//     0告诉前端需要根据data的命令修改  1无意义
    private int status;
    //0：连接成功，1：发送给当前连接的用户，2：发送信息给其他用户，3：发送选区位置信息，999：用户连接断开
    private int type;
    //用户名
    private String username;

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getReturnMessage() {
        return returnMessage;
    }

    public void setReturnMessage(String returnMessage) {
        this.returnMessage = returnMessage;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("createTime", createTime)
                .append("data", data)
                .append("id", id)
                .append("returnMessage", returnMessage)
                .append("status", status)
                .append("type", type)
                .append("username", username)
                .toString();
    }
}
